<script setup>
import { reactive, onMounted } from 'vue';
import { getCsv } from "@/api"
import Header from "@/components/Header.vue"

const state = reactive({
    url: ""
})
onMounted(() => {
    getCsv().then(res => {

        state.url = res.csv2.url
    })
})
const open = () => {
    window.open(state.url)
}
</script>

<template>
    <Header :title="$t('Deposit')"></Header>
    <div class="mx-2 mt-2 text-[16px]">
        <div>
            {{ $t('Please transfer to the following account to top up') }}
        </div>
        <div>
            {{ $t('Time Arrived：1-5 min(Apply for financing check)') }}
        </div>
        <div class="flex  items-center gap-1">
            <img src="@/assets/images/usdt.png" class="h-6" />
            <p class="text-[20px] font-bold">USDT</p>
            <p>
                updating......
            </p>
        </div>
        <div class="h-20"></div>
        <div class="fixed bottom-1 w-full" style="max-width: 350px;">

            <div class="text-center mb-2">
                {{ $t('*When transfer is completed, ' +
        'please wait 1-5 min for verification and do not upload ' +
        'for a second time.Please contact customer service if money is not received in 5 minutes') }}
            </div>
            <div @click="open">
                <button class="btn btn-primary btn-xs w-full bg-[#333] rounded-full text-[16px]">
                    {{ $t('Contact Customer Service') }}
                </button>
            </div>
        </div>
    </div>
</template>
